package zb.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import zb.pojo.Order;

import java.util.List;

@FeignClient(value = "order-server",fallback = OrderfeignClientfallback.class)
public interface OrderfeignClient {
    @RequestMapping("/order/showUserOrder/{uid}")
    public List<Order>ShowUserOrder(@PathVariable("uid") Integer uid);
    @RequestMapping("/order/saveOrder")
    public Integer saveOrder(@RequestBody Order order);
}
